package com.xiaozhi.utils;

import java.util.Random;

public class emailCode {

    public static String getEmailCode(){
        Random random = new Random();
        StringBuilder code = new StringBuilder();
        for (int i = 0; i < 6; i++) {
            code.append(random.nextInt(9) + 1);
        }
        System.out.println("验证码是："+code.toString());
        return code.toString();
    }
}
